import request from '@/utils/request'

// 查询参数列表
export function listShopUser(query) {
  return request({
    url: '/shop/users/list',
    method: 'get',
    params: query
  })
}
// 添加用户
export function addShopUser(data) {
  return request({
    url: '/shop/users',
    method: 'post',
    data
  })
}
//查询用户
export function queryShopUser(id) {
  return request({
    url: '/shop/users/' + id,
    method: 'get'
  })
}
//修改用户
export function updateShopUser(data) {
  return request({
    url: '/shop/users',
    method: 'put',
    data
  })
}
//删除用户
export function deleteShopUser(id) {
  return request({
    url: '/shop/users/' + id,
    method: 'delete'
  })
}
